import request from '@/utils/request'

// 账号登录
export const userAccountLogin = (data) => {
  return request ({
    method:'post',
    url: '/login',
    data
  })
}
// 短信登录
export const userMobileLogin = (data) => {
  return request ({
    method:'post',
    url: '/login/code',
    data
  })
}

// 短信登录验证码
export const userMobileLoginMsg = (params) => {
  return request ({
    method:'get',
    url: '/login/code',
    params
  })
}